/**
 * 
 */
package bankos;

import java.text.DecimalFormat;

/**
 * @author blank
 *
 */
public class account {
	private static int totalCount = 0;
	//姓名
	private String name;
	//账号
	private int id;
	//密码
	private String passwod;
	//手机号
	private String phone;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getId() {
		DecimalFormat decimalFormat =new DecimalFormat("000");
		return "Bank"+decimalFormat.format(id);
	}
	public void setId(int id) {
		this.id=id;
	}
	
	public String getPasswod() {
		return passwod;
	}
	public void setPasswod(String passwod) {
		this.passwod = passwod;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	/**
	 * 
	 */
	public account() {
		super();
		++totalCount;
		id=totalCount;
	}
	
	

}
